<?php
namespace Wechat\Controller;

use Think\Controller;
use Com\Wechat;
use Com\WechatAuth;
use Com\JSSDK;
use Think\Model;

class AController extends Controller
{

    public function qing()
    {
        $jsSdk = new JSSDK(C('WECHAT_APPID'), C('WECHAT_APPSECRET'));
        $signPackage = $jsSdk->GetSignPackage();

        $share = [
            'title' => "熊猫食堂 情人节第二份半价甜蜜午餐 快去送给特别的TA吧",
            'desc' => "熊猫食堂 情人节第二份半价甜蜜午餐 快去送给特别的TA吧",
            'logo' => C('SITE_URL') . 'shop/images/b100.png',
            'url' => C('SITE_URL') . 'wechat/a/qing',
        ];
        $this->assign('signPackage', $signPackage);
        $this->assign('share', $share);
        $this->display();
    }

}
